import com.lbi.animation.group.Queue;
import com.lbi.animation.single.Tween;
import com.lbi.core.helper.Delegate;

import animation.queue.QueueTestCase;

/**
 * @author micfor
 */
class animation.queue.QueueWithTweenTest extends QueueTestCase {
	private var className : String = "QueueWithTweenTest";
	private var test_obj : Queue;

	private var first_item_value : Number;
	private var first_tween : Tween;

	private var second_item_value : Number;
	private var second_tween : Tween;

	function run():Void{
		addTweenValuePairs(["first","second"]);
		test_obj = new Queue();
		test_obj.addAnimation(first_tween);
		test_obj.addAnimation(second_tween);
		test_obj.addEventListener("complete",Delegate.create(this, onQueueComplete));
		test_obj.go();
	}
	
	function testQueueWithTween():Void{
		assertEquals(TARGET_VALUE,first_item_value);
		assertEquals(TARGET_VALUE,second_item_value);
	}

}